import java.awt.Point;

//Offensive Robot which can only be in shoot or collect state
public class OffensiveRobot extends Robot {
	
	private State state3;

	public OffensiveRobot(Robot.Alliance alliance, int identifier, Point position, int delayConstant, int speedConstant, int pickupConstant, int shootConstant, Robot.State state) {
		super(alliance, identifier, position, delayConstant, speedConstant, pickupConstant, shootConstant, Robot.State.collect);
		
		state3 = Robot.State.collect;
	}
	
	//overriden method: offensive robot can only collect or store
	public boolean findState(){
		if(state3 == State.collect && getHeldGamePieceList().size() > 0) {
			state3 = State.score;
			return true;
		}
		if(state3 == State.score && getHeldGamePieceList().size() == 0) {
			state3 = State.collect;
			return true;
		}
		else{
			return false;
		}
	}
}
